package com.farm.feign;

import com.farm.opjo.Crops;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 陈哲
 * @create 2020/10/15 15:54
 */
@FeignClient("Crops")
public interface CropsFeign {
    /**
     * 根据农作物id查询
     * @param cropsId
     * @return
     */
    @RequestMapping("/crops/findByCropsId/{cropsId}")
    public Crops findByCropsId(@PathVariable("cropsId") Integer cropsId);
}
